//
//  QLCommentOfFriendCell.m
//  神约
//
//  Created by qlwl on 16/12/15.
//  Copyright © 2016年 qlwl. All rights reserved.
//

#import "QLCommentOfFriendCell.h"
#import "UIView+FrameKIt.h" 

@implementation QLCommentOfFriendCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.contentView.backgroundColor = [UIColor clearColor];
        self.backgroundColor = [UIColor clearColor];
        _commentLab = [[TYAttributedLabel alloc] initWithFrame:CGRectZero];
        _commentLab.backgroundColor = [UIColor clearColor];
        _commentLab.linesSpacing = 1;
        //_commentLab.lineBreakMode = NSLineBreakByTruncatingTail;
        [self.contentView addSubview:_commentLab];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [_commentLab setFrameWithOrign:CGPointMake(6, 2) Width:self.f_width - 6 -1 ];
}

@end
